import { exRadioGroup } from '@ve/common/components/extension'
// import { componentId } from '@/utils/unique'
export default {
  VERSION: '20220408',
  type: 'uiTabs',
  name: '标签页',
  icon: 'window-line',
  svg: 'biaoqianye',
  //数据别名
  // dataName: 'uiTabs_data',
  //扩展
  extension: {
    type: exRadioGroup('风格类型', '', [
      {
        value: '',
        label: '基础',
      },
      {
        value: 'card',
        label: '选项卡',
      },
      {
        value: 'border-card',
        label: '卡片',
      },
    ]),
    tabOption: {
      type: 'exTabOption',
      name: '标签页选项',
      value: [],
    },
    tabPosition: exRadioGroup('位置', 'top', [
      {
        value: 'top',
        label: '上',
      },
      {
        value: 'right',
        label: '右',
      },
      {
        value: 'bottom',
        label: '下',
      },
      {
        value: 'left',
        label: '左',
      },
    ]),
    // activeName: 'first',
  },
  list: [
    {
      // _id: `tab_${componentId(6)}`,
      hidden: false,
      type: 'tabsList',
      actions: [],
      name: '菜单0',
      label: '菜单0',
      value: '0',
      list: [],
    },
    {
      // _id: `tab_${componentId(6)}`,
      hidden: false,
      type: 'tabsList',
      actions: [],
      name: '菜单1',
      label: '菜单1',
      value: '1',
      list: [],
    },
    {
      // _id: `tab_${componentId(6)}`,
      hidden: false,
      type: 'tabsList',
      actions: [],
      name: '菜单2',
      label: '菜单2',
      value: '2',
      list: [],
    },
    {
      // _id: `tab_${componentId(6)}`,
      hidden: false,
      type: 'tabsList',
      actions: [],
      name: '菜单3',
      label: '菜单3',
      value: '3',
      list: [],
    },
  ],
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
